package com.gz.springboot.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @GetMapping(value = {"/","/login"})
    public String login(){
        //注意这里没有配置视图解析器也能访问的原因是:
        //这里引入了spring-boot-starter-thymeleaf会直接视图解析到templates下的html文件
        return "adminLogin";
    }
}
